<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<form id="payRecordForm"  style="padding: 5px 15px 0px 15px;margin-top:5px;" >

    <div style="width:420px;float:left;">
	<div class="form-item-cw required">
		<input type="hidden" value="${payrecord.id}" name="id"/>
		<label for="">学生姓名</label>
		<c:if test="${payrecord.id!=null}">
			<input data-options="required:true" id="name" type="text" width="200px" class="easyui-textbox" name="student" value="${payrecord.student.name }" />
		</c:if>
		<c:if test="${payrecord.id==null}">
		<select id="name" class="easyui-combobox" style="width: 200px;" name="student" data-options="required:true,panelHeight:'auto',editable:false">
			<c:forEach items="${stu}" var="stu">
				<option  value="${stu.tb_student_id}" ${stu.student_name == payrecord.student['name'] ? 'selected' :''}>${stu.student_name}</option>
			</c:forEach>
		</select>
		</c:if>
	</div>
	<div class="form-item-cw required" data-options="required:true">
		<label for="">身份</label>
		 <select data-options="required:true,panelHeight:'auto',editable:false" id="shenfen" name="identity" class="easyui-combobox" style="width:200px;">
		
				<option value="高中生"
					${empty payrecord ||  payrecord.identity == '高中生'?'selected="selected"':'' }>高中生</option>
				<option value="大学生"
					${payrecord.identity=='大学生'?'selected="selected"':''}>大学生</option>
				
		</select> 
	</div>
	<div class="form-item-cw required" data-options="required:true">
	<label for="">班级</label>
			<select id="identity" class="easyui-combobox" style="width:200px;"data-options="panelHeight:'auto',editable:false" name="classes" >
					 <c:forEach items="${className}" var="stu">
						<option  value="${stu.tb_classes_id}" ${stu.class_name == payrecord.classes['className'] ? 'selected' :''}>${stu.class_name}</option>
					</c:forEach> 
			</select>
	</div>
	<div class="form-item-cw required">
		<label for="">总金额</label>
		<input data-options="required:true" id="jine" type="text" width="200px" class="easyui-numberbox" name="allMoney" value="${payrecord.allMoney }" max="50000" min="1"/>
	</div>
	<div class="form-item-cw" >
		<label for="">是否完成</label>
		<input type="radio" ${payrecord.finish == '完成'?'checked':'' } name="finish" value="完成"/> 是
		<input type="radio" ${empty payrecord || payrecord.finish == '未完成'?'checked':'' } name="finish" value="未完成" style="margin-left:20px;"/> 否
	</div>
	</div>
	
	<div class="form-item-cw">
		<label for="">优惠金额</label>
		<input  class="easyui-numberbox" name="discountMoney" value="${payrecord.discountMoney }" type="text" width="200px" />
	</div>
	<div class="form-item-cw required" >
		<label for="" style="position:relative;bottom: 37px;">优惠原因</label>
		<textarea class="easyui-textbox " data-options="multiline:true" name="discountReason" style="width:204px;height:109px;border-radius:5px;padding:5px" >${payrecord.discountReason}</textarea>
	</div>
	
</form>
